package com.heima.springdemo3.User;

import com.heima.springdemo3.condition.ClassCondition;
import com.heima.springdemo3.condition.ConditionOnClass;
import com.heima.springdemo3.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfiguration {

    @Bean
    @ConditionOnClass("redis.clients.jedis.Jedis")
    public User user(){
        return new User();
    }

}
